import java.util.Scanner;
public class AccountTest {
    public static void main(String[] args)
    {
        Scanner input=new Scanner(System.in);
        // 同一个文件中可以直接使用不用import
        Account myAccount=new Account();
        System.out.printf("Initial name is: %s%n%n", myAccount.getName());
        System.out.println("Please enter the name:");
        String theName=input.nextLine();
        myAccount.setName(theName);
        System.out.println();
        System.out.printf("Name in myAccount is: %n%s%n",myAccount.getName());
    }
}
